﻿using Microsoft.EntityFrameworkCore;
using RBAC.Domain;

namespace RBAC.Interstructrue
{
    public class MYDbContext : DbContext
    {
        public MYDbContext(DbContextOptions options) : base(options)
        {
        }
        public DbSet<UserModel> Users { get; set; }
        public DbSet<RoleModel> Roles { get; set; }
        public DbSet<PermissionModel> Permissions { get; set; }
        public DbSet<RolePermissionModel> RolePermissions { get; set; }
        public DbSet<UserRoleModel> UserRoles { get; set; }

    }
}
